package web;

import service.MasterService;
import service.impl.MasterServiceImpl;

import java.util.Scanner;

public class TestUpdateMaster {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入用户名：");
        String name = scanner.next();
        System.out.print("请输入原密码：");
        String oldPassword = scanner.next();
        System.out.print("请输入新密码：");
        String password = scanner.next();
        MasterService masterService=new MasterServiceImpl();
        masterService.update(name,password,oldPassword);
    }
}
